package com.qinhailin.portal.dbm.service;

import com.qinhailin.portal.dbm.model.CTAdmin;

/** 2019-11-23 21:28:45 批量生成 harrydeep@wardyan.top **/
public class CTAdminServiceImpl extends MasterServiceImpl<CTAdmin>{

	public CTAdminServiceImpl() {super(CTAdmin.dao);}

	//@Override
	public CTAdmin find(String xAccount, String xPwd) {
		return (CTAdmin) this.findBySql(this.sql + " WHERE xAccount = ? and xPassword = ?", xAccount, xPwd.toLowerCase());
	}

	//@Override
	public CTAdmin find(String xAccount) {
		return (CTAdmin) this.findBySql(this.sql + " WHERE xAccount = ?", xAccount);
	}

}
